<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>h5新增表单</title>
    <style>
        div{
            box-sizing: border-box;
        }
    </style>
</head>

<body>
    <form action="">
        <input type="search" required autofocus><!--required表示表单不能为空,aotofocus表示自动获得焦点-->
        <input type="tel">
        <input type="email">
        <input type="color" value="" class="coo">
        <input type="submit" value="提交">
    </form>
    <script>
        var co = document.querySelector('.coo');
        console.log(co.value);
    </script>
</body>

</html>